#ifndef __AHT20_APP_H__
#define __AHT20_APP_H__

#define AHT20_DEBUG 0

#define AHT20_ADDRRES 0x38
#define AHT20_INIT_REG 0xBE
#define AHT20_SOFTRESET_REG 0xBA
#define AHT20_TRIGMEASURE_REG 0xAC

#ifdef __cplusplus
extern "C"
{
#endif

    typedef enum
    {
        HUMIDITY,    /*!< humidity type*/
        TEMPERATURE, /*!< temperature type*/
    } aht20_get_data_type_t;

    typedef struct
    {
        float humidity;    /*!< humidity data*/
        float temperature; /*!< temperature data*/
    } aht20_app_data;

    float aht_get_data(aht20_get_data_type_t data_type_t);
    void aht_task(void *arg);

#ifdef __cplusplus
}
#endif

#endif
